<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" class="form-control" name="row[code]" type="text" value="{$row.code|htmlentities}" disabled>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-type" class="form-control selectpicker" name="row[type]" data-rule="required">
                <option value="" >请选择种类</option>
                {foreach name="typeList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group test">
        <label class="control-label col-xs-12 col-sm-2">{:__('Test_mainid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-test_mainid"  data-source="mental/test_main/index" data-field="title" class="form-control selectpage" name="row[test_mainid]" type="text" value="{$row.test_mainid|htmlentities}">
        </div>
    </div>
    <div class="form-group xlzxinfo">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zx_xlzxinfoid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zx_xlzxinfoid"  data-source="xlzxinfo/xlzxinfo/index" data-params='{"custom[status]":"1"}'  data-field="full_name" class="form-control selectpage" name="row[zx_xlzxinfoid]" type="text" value="{$row.zx_xlzxinfoid|htmlentities}">
        </div>
    </div>
    <div class="form-group xlzxinfo">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zx_minutes')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- {:Form::radios('row[zx_minutes]', ['15'=>'15分钟', '30'=>'30分钟', '60'=>'60分钟'], $row.zx_minutes, ['data-rule'=>'required'])} -->

            <input id="c-zx_minutes" class="form-control" name="row[zx_minutes]" type="number" value="{$row.zx_minutes|htmlentities}" data-rule="required">
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Zx_start_time')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-zx_start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[zx_start_time]" type="text" value="{:$row.zx_start_time?datetime($row.zx_start_time):''}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Zx_end_time')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-zx_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[zx_end_time]" type="text" value="{:$row.zx_end_time?datetime($row.zx_end_time):''}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group sp">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sp_videoid')}:</label>
        <div class="col-xs-12 col-sm-8">
<!--            <input id="c-sp_videoid" class="form-control" name="row[sp_videoid]" type="number" value="{$row.sp_videoid|htmlentities}">-->
            <input id="c-sp_videoid"  data-source="video/video/index" data-field="title" class="form-control selectpage" name="row[sp_videoid]" type="text" value="{$row.sp_videoid|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-status" class="form-control" name="row[status]" type="number" value="{$row.status|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[status]', ['0'=>'待使用', '1'=>'已使用'], $row.status, ['data-rule'=>'required','disabled'=>"disabled"])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
